package cn.shop.front.config;

import cn.shop.front.config.interceptor.MerchantInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * @author jzw
 * @since 2021-12-30 17:48
 */
@Configuration
public class IWebMvcConfigurer implements WebMvcConfigurer {

	@Resource
	private MerchantInterceptor merchantInterceptor;

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		// 注册注解拦截器，并排除不需要注解鉴权的接口地址 (与登录拦截器无关)
		// registry.addInterceptor(merchantInterceptor).addPathPatterns("/**");
	}

}
